package io1;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class ISWDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("fos.put");
        InputStreamReader iss=new InputStreamReader(fis, StandardCharsets.UTF_8);
        int b;
        while ((b=iss.read())!=-1){
            System.out.print((char)b );
        }
        iss.close();
    }
}
